package com.itjin.health.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 地点实体类
 */
@Data
@TableName("locations")
public class Location implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 地点ID
   */
  @TableId(value = "locationid", type = IdType.AUTO)
  private Integer locationId;

  /**
   * 地点名称
   */
  @TableField("LocationName")
  private String locationName;

  /**
   * 详细地址
   */
  @TableField("Address")
  private String address;

  /**
   * 创建时间
   */
  @TableField(value = "CreatedAt", fill = FieldFill.INSERT)
  private LocalDateTime createdAt;

  /**
   * 更新时间
   */
  @TableField(value = "UpdatedAt", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updatedAt;
}